@extends('member.member')

<!-- title -->
@section('title', '来自企业的评价')

<!-- 中间内容块 -->
@section('rightcontainer')
<div class="my_credit member-container">
    <div class='ent_zhph ent3'>
    	<ul class="mem_cate clearfix">
    		<li class='firt-li'>排序方法:</li>
    		<li>
    			<a href='#'><div class='ent-hover'>时间</div></a>
  			</li>
			<li>|</li>
			<li>
    			<a href='#'><div class='ent-hover'>浏览量</div></a>
  			</li>
			<li>|</li>
			<li>
    			<a href='#'><div class='ent-hover'>评论星级</div></a>
 			</li>
    	</ul>
    </div>
    @foreach($comments as $cmt)
	<div class="mem_cont clearfix">
		<div class="fl ml-10" style="margin-bottom: 20px">
			<img src="{{ $cmt->company->logo }}" width="60" height="60">
		</div>
		<div class="fl ml-10">
			<div class="ft-16 cor-2">{{ str_limit(strip_tags($cmt->content),50) }}</div>
			<div style="width: 850px">
			    <span class="fl">
			     @if($cmt->level == 1)
			     <span class="color-1">好评</span>
			     @elseif($cmt->level == 2)
			     <span class="color-2">中评</span>
			     @else
			     <span class="color-red2">差评</span>
			     @endif
			    </span>
				<span class="fr">
					<a href="" class="ml-20"><img src="{{ asset('../images/front/member/trash.png')}}"></a>
				</span>
				<div class="clearfix"></div>
			</div>
			
			<div class="ft-14 cor-4">
				<span>{{ date('Y-m-d H:i',strtotime($cmt->created_at)) }}</span>
			</div>
		</div>
	</div>
	@endforeach
	<div class="paginate">{!! $comments->render() !!} </div>
</div>
@stop

<!-- 底部块 -->
@section('footer')
    @parent
@stop

